{extend name="index/base" /}
{block name="style"}{/block}
{block name="body"}
<form class="layui-form" action="">
  <div class="layui-form-item">
    <label class="layui-form-label">用户等级</label>
    <div class="layui-input-inline">
      <select name="leval" lay-verify="required">
        <option value=""></option>
        {volist name="leval_arr" id="vo"}
        <option value="{$key}">{$vo}</option>
        {/volist}
      </select>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">上级ID</label>
    <div class="layui-input-inline" style="width: 100px;">
      <input type="number" name="pid" value="{$uinfo.pid}" required  lay-verify="required" placeholder="请输入上级ID" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">经验值</label>
    <div class="layui-input-inline" style="width: 100px;">
      <input type="number" name="experience" value="{$uinfo.experience}" required  lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
    </div>
    <div class="layui-form-mid layui-word-aux">*仅供内测使用，即是当前用户已经消费金额</div>
  </div>
    <div class="layui-form-item">
    <label class="layui-form-label">积分</label>
    <div class="layui-input-inline" style="width: 100px;">
      <input type="number" name="score" value="{$uinfo.score}" required  lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">余额</label>
    <div class="layui-input-inline" style="width: 100px;">
      <input type="number" name="money" value="{$uinfo.money}" required  lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
    </div>
    <div class="layui-form-mid layui-word-aux">*仅供内测使用</div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">用户状态</label>
    <div class="layui-input-inline">
      <select name="status" lay-verify="required">
        <option value="1">正常</option>
        <option value="0">冻结</option>
      </select>
    </div>
  </div>
  <div class="layui-form-item layui-sumbtn">
	  <div class="layui-input-block">
	    <button class="layui-btn window_submit" lay-submit="" lay-filter="ajax-post" type="submit" target-form="layui-form">立即提交</button>
	    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
	  </div>
  </div>
</form>
{/block}

{block name="script"}
<script type="text/javascript">
layui.config({
     base: '/static/js/',
});
layui.use(['tool'],function(){
	var $ = layui.jquery,form=layui.form,tool=layui.tool;
	tool.setValue('leval',{$uinfo->getData('leval')});
  tool.setValue('status',{$uinfo->getData('status')});
});
</script>
{/block}